package cn.apthink.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 *
 * </p>
 *
 * @author David唐
 * @since 2024-01-25
 */
@Getter
@Setter
@ToString
@TableName("user")
@ApiModel(value = "UserEntity对象", description = "")
public class UserEntity {

    @ApiModelProperty(value="字段id", name="id")
    @TableId(value="id", type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty(value="字段account", name="account")
    @TableField("account")
    private String account;

    @ApiModelProperty(value="字段password", name="password")
    @TableField("password")
    private String password;

    @ApiModelProperty(value="字段username", name="username")
    @TableField("username")
    private String username;

    @ApiModelProperty(value="字段avatar", name="avatar")
    @TableField("avatar")
    private String avatar;

    @ApiModelProperty(value="字段contact", name="contact")
    @TableField("contact")
    private String contact;

    @ApiModelProperty(value="字段status", name="status")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value="字段birthday", name="birthday")
    @TableField("birthday")
    private String birthday;

    @ApiModelProperty(value="字段gender", name="gender")
    @TableField("gender")
    private Integer gender;

    @ApiModelProperty(value="字段description", name="description")
    @TableField("description")
    private String description;

    @ApiModelProperty(value="字段createtime", name="createtime")
    @TableField(value="createtime" , fill = FieldFill.INSERT)
    private String createtime;

    @ApiModelProperty(value="字段updatetime", name="updatetime")
    @TableField(value="updatetime", fill = FieldFill.INSERT_UPDATE)
    private String updatetime;
}
